import request from '@/utils/request'
/**
 * 车位列表-分页
 */
export const usagePagingListApi = (data) => {
  return request({
    url: "/parking/usage",
    params: data
  })
}
/**
 * 车位列表-删除
 */
export const delUsageListApi = (id) => {
  return request({
    url: `/parking/usage/${id}`,
    method: "DELETE",

  })
}
/**
 * 车位列表-添加
 */
export const addUsageListApi = (data) => {
  return request({
    method: 'post',
    url: "/parking/usage",
    data
  })
}
/**
 * 车位列表-详情-回显
 */
export const showUsageDetailsApi = (id) => {
  return request({
    url: `/parking/usage/${id}`,

  })
}
/**
 *  车位-修改
 */
export const editUsageDetailsApi = (data) => {
  return request({
    url: `/parking/usage/${data.id}`,
    method: 'put',
    data
  })
}
/**
 * 车位编号
 */
export const usageIndexListApi = (data) => {
  return request({
    url: "/parking/index",
    params: data
  })
}